/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pro.unal.edu.filter;

import java.awt.Color;

/**
 *
 * @author DavidN
 */
public class MyPoint {

    Color color;
    float x = 0;
    float y = 0;
    float z = 1;

    public MyPoint(float x, float y) {
        this.x = x;
        this.y = y;
//        color = new Color(138, 138, 138);
    }

    public MyPoint(float x, float y, Color c) {
        this.x = x;
        this.y = y;
        if (c != null) {
            color = new Color(c.getRed(), c.getGreen(), c.getBlue());
        }
    }

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }

    public float getZ() {
        return z;
    }

    public void setZ(float z) {
        this.z = z;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }
}
